<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Title</title>
  </head>
  <body>
    <script>
      const arr = [1, 2, 3];
      const originPush = Array.prototype.push;
      Array.prototype.push = function (val) {
        originPush.call(this, val + 1);
      };
      arr.push(5);
      console.log(arr);
      console.log(arr.every((item) => item.a));
    </script>
  </body>
</html>
